//
//  YHBCell.m
//  HBDemo
//
//  Created by RYX on 2019/3/25.
//  Copyright © 2019 tuobu. All rights reserved.
//

#import "YHBNameCell.h"
#import "YHBZDNameModel.h"

@implementation YHBNameCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    YHBNameCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    if (!cell) {
        
        NSString *className = NSStringFromClass([self class]);
        cell = [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
    }
    
    return cell;
}

- (void)setModel:(YHBZDNameModel *)model{
    
    self.nameLa.text = model.realName;
    self.numLa.text = [NSString stringWithFormat:@"%@台",model.count];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
